home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / info / texinfo.info-3.z / texinfo.info-3
Encoding:
GNU Info File  |  1998-05-21  |  49.8 KB  |  1,310 lines

  1. This is Info file ../info/texinfo.info, produced by Makeinfo version
  2. 1.68 from the input file texinfo.texi.
  3.  
  4. INFO-DIR-SECTION Texinfo documentation system
  5. START-INFO-DIR-ENTRY
  6. * Texinfo: (texinfo).           The GNU documentation format.
  7. * install-info: (texinfo)Invoking install-info. Updating info/dir entries.
  8. * texi2dvi: (texinfo)Format with texi2dvi.      Printing Texinfo documentation.
  9. * texindex: (texinfo)Format with tex/texindex.  Sorting Texinfo index files.
  10. * makeinfo: (texinfo)makeinfo Preferred.        Translate Texinfo source.
  11. END-INFO-DIR-ENTRY
  12.  
  13.   This file documents Texinfo, a documentation system that can produce
  14. both on-line information and a printed manual from a single source file.
  15.  
  16.   Copyright (C) 1988, 90, 91, 92, 93, 95, 96, 97 Free Software
  17. Foundation, Inc.
  18.  
  19.   This is the second edition of the Texinfo documentation,
  20. and is consistent with version 2 of `texinfo.tex'.
  21.  
  22.   Permission is granted to make and distribute verbatim copies of this
  23. manual provided the copyright notice and this permission notice are
  24. preserved on all copies.
  25.  
  26.   Permission is granted to copy and distribute modified versions of this
  27. manual under the conditions for verbatim copying, provided that the
  28. entire resulting derived work is distributed under the terms of a
  29. permission notice identical to this one.
  30.  
  31.   Permission is granted to copy and distribute translations of this
  32. manual into another language, under the above conditions for modified
  33. versions, except that this permission notice may be stated in a
  34. translation approved by the Free Software Foundation.
  35.  
  36. 
  37. File: texinfo.info,  Node: setchapternewpage,  Next: paragraphindent,  Prev: settitle,  Up: Header
  38.  
  39. `@setchapternewpage'
  40. --------------------
  41.  
  42.   In a book or a manual, text is usually printed on both sides of the
  43. paper, chapters start on right-hand pages, and right-hand pages have
  44. odd numbers.  But in short reports, text often is printed only on one
  45. side of the paper.  Also in short reports, chapters sometimes do not
  46. start on new pages, but are printed on the same page as the end of the
  47. preceding chapter, after a small amount of vertical whitespace.
  48.  
  49.   You can use the `@setchapternewpage' command with various arguments
  50. to specify how TeX should start chapters and whether it should typeset
  51. pages for printing on one or both sides of the paper (single-sided or
  52. double-sided printing).
  53.  
  54.   Write the `@setchapternewpage' command at the beginning of a line
  55. followed by its argument.
  56.  
  57.   For example, you would write the following to cause each chapter to
  58. start on a fresh odd-numbered page:
  59.  
  60.      @setchapternewpage odd
  61.  
  62.   You can specify one of three alternatives with the
  63. `@setchapternewpage' command:
  64.  
  65. `@setchapternewpage off'
  66.      Cause TeX to typeset a new chapter on the same page as the last
  67.      chapter, after skipping some vertical whitespace.  Also, cause TeX
  68.      to format page headers for single-sided printing. (You can
  69.      override the headers format with the `@headings double' command;
  70.      see *Note The `@headings' Command: headings on off.)
  71.  
  72. `@setchapternewpage on'
  73.      Cause TeX to start new chapters on new pages and to typeset page
  74.      headers for single-sided printing.  This is the form most often
  75.      used for short reports.
  76.  
  77.      This alternative is the default.
  78.  
  79. `@setchapternewpage odd'
  80.      Cause TeX to start new chapters on new, odd-numbered pages
  81.      (right-handed pages) and to typeset for double-sided printing.
  82.      This is the form most often used for books and manuals.
  83.  
  84. Texinfo does not have an `@setchapternewpage even' command.
  85.  
  86. (You can countermand or modify an `@setchapternewpage' command with an
  87. `@headings' command.  *Note The `@headings' Command: headings on off.)
  88.  
  89.   At the beginning of a manual or book, pages are not numbered--for
  90. example, the title and copyright pages of a book are not numbered.  By
  91. convention, table of contents pages are numbered with roman numerals
  92. and not in sequence with the rest of the document.
  93.  
  94.   Since an Info file does not have pages, the `@setchapternewpage'
  95. command has no effect on it.
  96.  
  97.   Usually, you do not write an `@setchapternewpage' command for
  98. single-sided printing, but accept the default which is to typeset for
  99. single-sided printing and to start new chapters on new pages.  Usually,
  100. you write an `@setchapternewpage odd' command for double-sided printing.
  101.  
  102. 
  103. File: texinfo.info,  Node: paragraphindent,  Next: End of Header,  Prev: setchapternewpage,  Up: Header
  104.  
  105. Paragraph Indenting
  106. -------------------
  107.  
  108.   The Info formatting commands may insert spaces at the beginning of the
  109. first line of each paragraph, thereby indenting that paragraph.  You
  110. can use the `@paragraphindent' command to specify the indentation.
  111. Write an `@paragraphindent' command at the beginning of a line followed
  112. by either `asis' or a number.  The template is:
  113.  
  114.      @paragraphindent INDENT
  115.  
  116.   The Info formatting commands indent according to the value of INDENT:
  117.  
  118.    * If the value of INDENT is `asis', the Info formatting commands do
  119.      not change the existing indentation.
  120.  
  121.    * If the value of INDENT is zero, the Info formatting commands delete
  122.      existing indentation.
  123.  
  124.    * If the value of INDENT is greater than zero, the Info formatting
  125.      commands indent the paragraph by that number of spaces.
  126.  
  127.   The default value of INDENT is `asis'.
  128.  
  129.   Write the `@paragraphindent' command before or shortly after the
  130. end-of-header line at the beginning of a Texinfo file.  (If you write
  131. the command between the start-of-header and end-of-header lines, the
  132. region formatting commands indent paragraphs as specified.)
  133.  
  134.   A peculiarity of the `texinfo-format-buffer' and
  135. `texinfo-format-region' commands is that they do not indent (nor fill)
  136. paragraphs that contain `@w' or `@*' commands.  *Note Refilling
  137. Paragraphs::, for a detailed description of what goes on.
  138.  
  139. 
  140. File: texinfo.info,  Node: End of Header,  Prev: paragraphindent,  Up: Header
  141.  
  142. End of Header
  143. -------------
  144.  
  145.   Follow the header lines with an end-of-header line.  An end-of-header
  146. line looks like this:
  147.  
  148.      @c %**end of header
  149.  
  150.   If you include the `@setchapternewpage' command between the
  151. start-of-header and end-of-header lines, TeX will typeset a region as
  152. that command specifies.  Similarly, if you include an `@smallbook'
  153. command between the start-of-header and end-of-header lines, TeX will
  154. typeset a region in the "small" book format.
  155.  
  156.   The reason for the odd string of characters (`%**') is so that the
  157. `texinfo-tex-region' command does not accidentally find something that
  158. it should not when it is looking for the header.
  159.  
  160.   The start-of-header line and the end-of-header line are Texinfo mode
  161. variables that you can change.
  162.  
  163. 
  164. File: texinfo.info,  Node: Info Summary and Permissions,  Next: Titlepage & Copyright Page,  Prev: Header,  Up: Beginning a File
  165.  
  166. Summary and Copying Permissions for Info
  167. ========================================
  168.  
  169.   The title page and the copyright page appear only in the printed copy
  170. of the manual; therefore, the same information must be inserted in a
  171. section that appears only in the Info file.  This section usually
  172. contains a brief description of the contents of the Info file, a
  173. copyright notice, and copying permissions.
  174.  
  175.   The copyright notice should read:
  176.  
  177.      Copyright YEAR COPYRIGHT-OWNER
  178.  
  179. and be put on a line by itself.
  180.  
  181.   Standard text for the copyright permissions is contained in an
  182. appendix to this manual; see *Note `ifinfo' Copying Permissions: ifinfo
  183. Permissions, for the complete text.
  184.  
  185.   The permissions text appears in an Info file *before* the first node.
  186. This mean that a reader does *not* see this text when reading the file
  187. using Info, except when using the advanced Info command `g *'.
  188.  
  189. 
  190. File: texinfo.info,  Node: Titlepage & Copyright Page,  Next: The Top Node,  Prev: Info Summary and Permissions,  Up: Beginning a File
  191.  
  192. The Title and Copyright Pages
  193. =============================
  194.  
  195.   A manual's name and author are usually printed on a title page.
  196. Sometimes copyright information is printed on the title page as well;
  197. more often, copyright information is printed on the back of the title
  198. page.
  199.  
  200.   The title and copyright pages appear in the printed manual, but not
  201. in the Info file.  Because of this, it is possible to use several
  202. slightly obscure TeX typesetting commands that cannot be used in an
  203. Info file.  In addition, this part of the beginning of a Texinfo file
  204. contains the text of the copying permissions that will appear in the
  205. printed manual.
  206.  
  207.   *Note Titlepage Copying Permissions: Titlepage Permissions, for the
  208. standard text for the copyright permissions.
  209.  
  210. * Menu:
  211.  
  212. * titlepage::                   Create a title for the printed document.
  213. * titlefont center sp::         The `@titlefont', `@center',
  214.                                   and `@sp' commands.
  215. * title subtitle author::       The `@title', `@subtitle',
  216.                                   and `@author' commands.
  217. * Copyright & Permissions::     How to write the copyright notice and
  218.                                   include copying permissions.
  219. * end titlepage::               Turn on page headings after the title and
  220.                                   copyright pages.
  221. * headings on off::             An option for turning headings on and off
  222.                                   and double or single sided printing.
  223.  
  224. 
  225. File: texinfo.info,  Node: titlepage,  Next: titlefont center sp,  Prev: Titlepage & Copyright Page,  Up: Titlepage & Copyright Page
  226.  
  227. `@titlepage'
  228. ------------
  229.  
  230.   Start the material for the title page and following copyright page
  231. with `@titlepage' on a line by itself and end it with `@end titlepage'
  232. on a line by itself.
  233.  
  234.   The `@end titlepage' command starts a new page and turns on page
  235. numbering.  (*Note Page Headings: Headings, for details about how to
  236. generate page headings.)  All the material that you want to appear on
  237. unnumbered pages should be put between the `@titlepage' and `@end
  238. titlepage' commands.  By using the `@page' command you can force a page
  239. break within the region delineated by the `@titlepage' and `@end
  240. titlepage' commands and thereby create more than one unnumbered page.
  241. This is how the copyright page is produced.  (The `@titlepage' command
  242. might perhaps have been better named the `@titleandadditionalpages'
  243. command, but that would have been rather long!)
  244.  
  245.   When you write a manual about a computer program, you should write the
  246. version of the program to which the manual applies on the title page.
  247. If the manual changes more frequently than the program or is
  248. independent of it, you should also include an edition number(1) (*note
  249. titlepage-Footnotes::) for the manual.  This helps readers keep track
  250. of which manual is for which version of the program.  (The `Top' node
  251. should also contain this information; see *Note `@top': makeinfo top.)
  252.  
  253.   Texinfo provides two main methods for creating a title page.  One
  254. method uses the `@titlefont', `@sp', and `@center' commands to generate
  255. a title page in which the words on the page are centered.
  256.  
  257.   The second method uses the `@title', `@subtitle', and `@author'
  258. commands to create a title page with black rules under the title and
  259. author lines and the subtitle text set flush to the right hand side of
  260. the page.  With this method, you do not specify any of the actual
  261. formatting of the title page.  You specify the text you want, and
  262. Texinfo does the formatting.  You may use either method.
  263.  
  264.   For extremely simple applications, Texinfo also provides a command
  265. `@shorttitlepage' which takes a single argument as the title.  The
  266. argument is typeset on a page by itself and followed by a blank page.
  267.  
  268. 
  269. File: texinfo.info,  Node: titlepage-Footnotes,  Up: titlepage
  270.  
  271.   (1) We have found that it is helpful to refer to versions of manuals
  272. as `editions' and versions of programs as `versions'; otherwise, we
  273. find we are liable to confuse each other in conversation by referring
  274. to both the documentation and the software with the same words.
  275.  
  276. 
  277. File: texinfo.info,  Node: titlefont center sp,  Next: title subtitle author,  Prev: titlepage,  Up: Titlepage & Copyright Page
  278.  
  279. `@titlefont', `@center', and `@sp'
  280. ----------------------------------
  281.  
  282.   You can use the `@titlefont', `@sp', and `@center' commands to create
  283. a title page for a printed document.  (This is the first of the two
  284. methods for creating a title page in Texinfo.)
  285.  
  286.   Use the `@titlefont' command to select a large font suitable for the
  287. title itself.
  288.  
  289.   For example:
  290.  
  291.      @titlefont{Texinfo}
  292.  
  293.   Use the `@center' command at the beginning of a line to center the
  294. remaining text on that line.  Thus,
  295.  
  296.      @center @titlefont{Texinfo}
  297.  
  298. centers the title, which in this example is "Texinfo" printed in the
  299. title font.
  300.  
  301.   Use the `@sp' command to insert vertical space.  For example:
  302.  
  303.      @sp 2
  304.  
  305. This inserts two blank lines on the printed page.  (*Note `@sp': sp,
  306. for more information about the `@sp' command.)
  307.  
  308.   A template for this method looks like this:
  309.  
  310.      @titlepage
  311.      @sp 10
  312.      @center @titlefont{NAME-OF-MANUAL-WHEN-PRINTED}
  313.      @sp 2
  314.      @center SUBTITLE-IF-ANY
  315.      @sp 2
  316.      @center AUTHOR
  317.      ...
  318.      @end titlepage
  319.  
  320.   The spacing of the example fits an 8 1/2 by 11 inch manual.
  321.  
  322. 
  323. File: texinfo.info,  Node: title subtitle author,  Next: Copyright & Permissions,  Prev: titlefont center sp,  Up: Titlepage & Copyright Page
  324.  
  325. `@title', `@subtitle', and `@author'
  326. ------------------------------------
  327.  
  328.   You can use the `@title', `@subtitle', and `@author' commands to
  329. create a title page in which the vertical and horizontal spacing is
  330. done for you automatically.  This contrasts with the method described in
  331. the previous section, in which the `@sp' command is needed to adjust
  332. vertical spacing.
  333.  
  334.   Write the `@title', `@subtitle', or `@author' commands at the
  335. beginning of a line followed by the title, subtitle, or author.
  336.  
  337.   The `@title' command produces a line in which the title is set flush
  338. to the left-hand side of the page in a larger than normal font.  The
  339. title is underlined with a black rule.
  340.  
  341.   The `@subtitle' command sets subtitles in a normal-sized font flush
  342. to the right-hand side of the page.
  343.  
  344.   The `@author' command sets the names of the author or authors in a
  345. middle-sized font flush to the left-hand side of the page on a line
  346. near the bottom of the title page.  The names are underlined with a
  347. black rule that is thinner than the rule that underlines the title.
  348. (The black rule only occurs if the `@author' command line is followed
  349. by an `@page' command line.)
  350.  
  351.   There are two ways to use the `@author' command: you can write the
  352. name or names on the remaining part of the line that starts with an
  353. `@author' command:
  354.  
  355.      @author by Jane Smith and John Doe
  356.  
  357. or you can write the names one above each other by using two (or more)
  358. `@author' commands:
  359.  
  360.      @author Jane Smith
  361.      @author John Doe
  362.  
  363. (Only the bottom name is underlined with a black rule.)
  364.  
  365.   A template for this method looks like this:
  366.  
  367.      @titlepage
  368.      @title NAME-OF-MANUAL-WHEN-PRINTED
  369.      @subtitle SUBTITLE-IF-ANY
  370.      @subtitle SECOND-SUBTITLE
  371.      @author AUTHOR
  372.      @page
  373.      ...
  374.      @end titlepage
  375.  
  376. Contrast this form with the form of a title page written using the
  377. `@sp', `@center', and `@titlefont' commands:
  378.  
  379.      @titlepage
  380.      @sp 10
  381.      @center @titlefont{Name of Manual When Printed}
  382.      @sp 2
  383.      @center Subtitle, If Any
  384.      @sp 1
  385.      @center Second subtitle
  386.      @sp 2
  387.      @center Author
  388.      @page
  389.      ...
  390.      @end titlepage
  391.  
  392. 
  393. File: texinfo.info,  Node: Copyright & Permissions,  Next: end titlepage,  Prev: title subtitle author,  Up: Titlepage & Copyright Page
  394.  
  395. Copyright Page and Permissions
  396. ------------------------------
  397.  
  398.   By international treaty, the copyright notice for a book should be
  399. either on the title page or on the back of the title page.  The
  400. copyright notice should include the year followed by the name of the
  401. organization or person who owns the copyright.
  402.  
  403.   When the copyright notice is on the back of the title page, that page
  404. is customarily not numbered.  Therefore, in Texinfo, the information on
  405. the copyright page should be within `@titlepage' and `@end titlepage'
  406. commands.
  407.  
  408.   Use the `@page' command to cause a page break.  To push the copyright
  409. notice and the other text on the copyright page towards the bottom of
  410. the page, you can write a somewhat mysterious line after the `@page'
  411. command that reads like this:
  412.  
  413.      @vskip 0pt plus 1filll
  414.  
  415. This is a TeX command that is not supported by the Info formatting
  416. commands.  The `@vskip' command inserts whitespace.  The `0pt plus
  417. 1filll' means to put in zero points of mandatory whitespace, and as
  418. much optional whitespace as needed to push the following text to the
  419. bottom of the page.  Note the use of three `l's in the word `filll';
  420. this is the correct usage in TeX.
  421.  
  422.   In a printed manual, the `@copyright{}' command generates a `c'
  423. inside a circle.  (In Info, it generates `(C)'.)  The copyright notice
  424. itself has the following legally defined sequence:
  425.  
  426.      Copyright (C) YEAR COPYRIGHT-OWNER
  427.  
  428.   It is customary to put information on how to get a manual after the
  429. copyright notice, followed by the copying permissions for the manual.
  430.  
  431.   Note that permissions must be given here as well as in the summary
  432. segment within `@ifinfo' and `@end ifinfo' that immediately follows the
  433. header since this text appears only in the printed manual and the
  434. `ifinfo' text appears only in the Info file.
  435.  
  436.   *Note Sample Permissions::, for the standard text.
  437.  
  438. 
  439. File: texinfo.info,  Node: end titlepage,  Next: headings on off,  Prev: Copyright & Permissions,  Up: Titlepage & Copyright Page
  440.  
  441. Heading Generation
  442. ------------------
  443.  
  444.   An `@end titlepage' command on a line by itself not only marks the
  445. end of the title and copyright pages, but also causes TeX to start
  446. generating page headings and page numbers.
  447.  
  448.   To repeat what is said elsewhere,  Texinfo has two standard page
  449. heading formats, one for documents which are printed on one side of
  450. each sheet of paper (single-sided printing), and the other for
  451. documents which are printed on both sides of each sheet (double-sided
  452. printing).  (*Note `@setchapternewpage': setchapternewpage.)  You can
  453. specify these formats in different ways:
  454.  
  455.    * The conventional way is to write an `@setchapternewpage' command
  456.      before the title page commands, and then have the `@end titlepage'
  457.      command start generating page headings in the manner desired.
  458.      (*Note `@setchapternewpage': setchapternewpage.)
  459.  
  460.    * Alternatively, you can use the `@headings' command to prevent page
  461.      headings from being generated or to start them for either single or
  462.      double-sided printing.  (Write an `@headings' command immediately
  463.      after the `@end titlepage' command.  *Note The `@headings'
  464.      Command: headings on off, for more information.)
  465.  
  466.    * Or, you may specify your own page heading and footing format.
  467.      *Note Page Headings: Headings, for detailed information about page
  468.      headings and footings.
  469.  
  470.   Most documents are formatted with the standard single-sided or
  471. double-sided format, using `@setchapternewpage odd' for double-sided
  472. printing and no `@setchapternewpage' command for single-sided printing.
  473.  
  474. 
  475. File: texinfo.info,  Node: headings on off,  Prev: end titlepage,  Up: Titlepage & Copyright Page
  476.  
  477. The `@headings' Command
  478. -----------------------
  479.  
  480.   The `@headings' command is rarely used.  It specifies what kind of
  481. page headings and footings to print on each page.  Usually, this is
  482. controlled by the `@setchapternewpage' command.  You need the
  483. `@headings' command only if the `@setchapternewpage' command does not
  484. do what you want, or if you want to turn off pre-defined page headings
  485. prior to defining your own.  Write an `@headings' command immediately
  486. after the `@end titlepage' command.
  487.  
  488.   You can use `@headings' as follows:
  489.  
  490. `@headings off'
  491.      Turn off printing of page headings.
  492.  
  493. `@headings single'
  494.      Turn on page headings appropriate for single-sided printing.
  495.  
  496. `@headings double'
  497.      Turn on page headings appropriate for double-sided printing.  The
  498.      two commands, `@headings on' and `@headings double', are
  499.      synonymous.
  500.  
  501. `@headings singleafter'
  502. `@headings doubleafter'
  503.      Turn on `single' or `double' headings, respectively, after the
  504.      current page is output.
  505.  
  506. `@headings on'
  507.      Turn on page headings: `single' if `@setchapternewpage on',
  508.      `double' otherwise.
  509.  
  510.   For example, suppose you write `@setchapternewpage off' before the
  511. `@titlepage' command to tell TeX to start a new chapter on the same
  512. page as the end of the last chapter.  This command also causes TeX to
  513. typeset page headers for single-sided printing.  To cause TeX to
  514. typeset for double sided printing, write `@headings double' after the
  515. `@end titlepage' command.
  516.  
  517.   You can stop TeX from generating any page headings at all by writing
  518. `@headings off' on a line of its own immediately after the line
  519. containing the `@end titlepage' command, like this:
  520.  
  521.      @end titlepage
  522.      @headings off
  523.  
  524. The `@headings off' command overrides the `@end titlepage' command,
  525. which would otherwise cause TeX to print page headings.
  526.  
  527.   You can also specify your own style of page heading and footing.
  528. *Note Page Headings: Headings, for more information.
  529.  
  530. 
  531. File: texinfo.info,  Node: The Top Node,  Next: Software Copying Permissions,  Prev: Titlepage & Copyright Page,  Up: Beginning a File
  532.  
  533. The `Top' Node and Master Menu
  534. ==============================
  535.  
  536.   The `Top' node is the node from which you enter an Info file.
  537.  
  538.   A `Top' node should contain a brief description of the Info file and
  539. an extensive, master menu for the whole Info file.  This helps the
  540. reader understand what the Info file is about.  Also, you should write
  541. the version number of the program to which the Info file applies; or,
  542. at least, the edition number.
  543.  
  544.   The contents of the `Top' node should appear only in the Info file;
  545. none of it should appear in printed output, so enclose it between
  546. `@ifinfo' and `@end ifinfo' commands.  (TeX does not print either an
  547. `@node' line or a menu; they appear only in Info; strictly speaking,
  548. you are not required to enclose these parts between `@ifinfo' and `@end
  549. ifinfo', but it is simplest to do so.  *Note Conditionally Visible
  550. Text: Conditionals.)
  551.  
  552. * Menu:
  553.  
  554. * Title of Top Node::           Sketch what the file is about.
  555. * Master Menu Parts::           A master menu has three or more parts.
  556.  
  557. 
  558. File: texinfo.info,  Node: Title of Top Node,  Next: Master Menu Parts,  Prev: The Top Node,  Up: The Top Node
  559.  
  560. `Top' Node Title
  561. ----------------
  562.  
  563.   Sometimes, you will want to place an `@top' sectioning command line
  564. containing the title of the document immediately after the `@node Top'
  565. line (*note The `@top' Sectioning Command: makeinfo top command., for
  566. more information).
  567.  
  568.   For example, the beginning of the Top node of this manual contains an
  569. `@top' sectioning command, a short description, and edition and version
  570. information.  It looks like this:
  571.  
  572.      ...
  573.      @end titlepage
  574.      
  575.      @ifinfo
  576.      @node Top, Copying, , (dir)
  577.      @top Texinfo
  578.      
  579.      Texinfo is a documentation system...
  580.      
  581.      This is edition...
  582.      ...
  583.      @end ifinfo
  584.      
  585.      @menu
  586.      * Copying::                 Texinfo is freely
  587.                                    redistributable.
  588.      * Overview::                What is Texinfo?
  589.      ...
  590.      @end menu
  591.  
  592.   In a `Top' node, the `Previous', and `Up' nodes usually refer to the
  593. top level directory of the whole Info system, which is called `(dir)'.
  594. The `Next' node refers to the first node that follows the main or master
  595. menu, which is usually the copying permissions, introduction, or first
  596. chapter.
  597.  
  598. 
  599. File: texinfo.info,  Node: Master Menu Parts,  Prev: Title of Top Node,  Up: The Top Node
  600.  
  601. Parts of a Master Menu
  602. ----------------------
  603.  
  604.   A "master menu" is a detailed main menu listing all the nodes in a
  605. file.
  606.  
  607.   A master menu is enclosed in `@menu' and `@end menu' commands and
  608. does not appear in the printed document.
  609.  
  610.   Generally, a master menu is divided into parts.
  611.  
  612.    * The first part contains the major nodes in the Texinfo file: the
  613.      nodes for the chapters, chapter-like sections, and the appendices.
  614.  
  615.    * The second part contains nodes for the indices.
  616.  
  617.    * The third and subsequent parts contain a listing of the other,
  618.      lower level nodes, often ordered by chapter.  This way, rather
  619.      than go through an intermediary menu, an inquirer can go directly
  620.      to a particular node when searching for specific information.
  621.      These menu items are not required; add them if you think they are a
  622.      convenience.  If you do use them, put `@detailmenu' before the
  623.      first one, and `@end detailmenu' after the last; otherwise,
  624.      `makeinfo' will get confused.
  625.  
  626.   Each section in the menu can be introduced by a descriptive line.  So
  627. long as the line does not begin with an asterisk, it will not be
  628. treated as a menu entry.  (*Note Writing a Menu::, for more
  629. information.)
  630.  
  631.   For example, the master menu for this manual looks like the following
  632. (but has many more entries):
  633.  
  634.      @menu
  635.      * Copying::             Texinfo is freely
  636.                                redistributable.
  637.      * Overview::            What is Texinfo?
  638.      * Texinfo Mode::        Special features in GNU Emacs.
  639.      ...
  640.      ...
  641.      * Command and Variable Index::
  642.                              An entry for each @-command.
  643.      * Concept Index::       An entry for each concept.
  644.      
  645.      @detailmenu
  646.       --- The Detailed Node Listing ---
  647.      
  648.      Overview of Texinfo
  649.      
  650.      * Info Files::          What is an Info file?
  651.      * Printed Manuals::     Characteristics of
  652.                                a printed manual.
  653.      ...
  654.      ...
  655.      
  656.      Using Texinfo Mode
  657.      
  658.      * Info on a Region::    Formatting part of a file
  659.                                for Info.
  660.      ...
  661.      ...
  662.      @end detailmenu
  663.      @end menu
  664.  
  665. 
  666. File: texinfo.info,  Node: Software Copying Permissions,  Prev: The Top Node,  Up: Beginning a File
  667.  
  668. Software Copying Permissions
  669. ============================
  670.  
  671.   If the Texinfo file has a section containing the "General Public
  672. License" and the distribution information and a warranty disclaimer for
  673. the software that is documented, this section usually follows the `Top'
  674. node.  The General Public License is very important to Project GNU
  675. software.  It ensures that you and others will continue to have a right
  676. to use and share the software.
  677.  
  678.   The copying and distribution information and the disclaimer are
  679. followed by an introduction or else by the first chapter of the manual.
  680.  
  681.   Although an introduction is not a required part of a Texinfo file, it
  682. is very helpful.  Ideally, it should state clearly and concisely what
  683. the file is about and who would be interested in reading it.  In
  684. general, an introduction would follow the licensing and distribution
  685. information, although sometimes people put it earlier in the document.
  686. Usually, an introduction is put in an `@unnumbered' section.  (*Note
  687. The `@unnumbered' and `@appendix' Commands: unnumbered & appendix.)
  688.  
  689. 
  690. File: texinfo.info,  Node: Ending a File,  Next: Structuring,  Prev: Beginning a File,  Up: Top
  691.  
  692. Ending a Texinfo File
  693. *********************
  694.  
  695.   The end of a Texinfo file should include the commands that create
  696. indices and generate detailed and summary tables of contents.  And it
  697. must include the `@bye' command that marks the last line processed by
  698. TeX.
  699.  
  700.   For example:
  701.  
  702.      @node    Concept Index,     , Variables Index, Top
  703.      @c        node-name,    next, previous,        up
  704.      @unnumbered Concept Index
  705.      
  706.      @printindex cp
  707.      
  708.      @contents
  709.      @bye
  710.  
  711. * Menu:
  712.  
  713. * Printing Indices & Menus::    How to print an index in hardcopy and
  714.                                   generate index menus in Info.
  715. * Contents::                    How to create a table of contents.
  716. * File End::                    How to mark the end of a file.
  717.  
  718. 
  719. File: texinfo.info,  Node: Printing Indices & Menus,  Next: Contents,  Prev: Ending a File,  Up: Ending a File
  720.  
  721. Index Menus and Printing an Index
  722. =================================
  723.  
  724.   To print an index means to include it as part of a manual or Info
  725. file.  This does not happen automatically just because you use
  726. `@cindex' or other index-entry generating commands in the Texinfo file;
  727. those just cause the raw data for the index to be accumulated.  To
  728. generate an index, you must include the `@printindex' command at the
  729. place in the document where you want the index to appear.  Also, as
  730. part of the process of creating a printed manual, you must run a
  731. program called `texindex' (*note Format/Print Hardcopy::.) to sort the
  732. raw data to produce a sorted index file.  The sorted index file is what
  733. is actually used to print the index.
  734.  
  735.   Texinfo offers six different types of predefined index: the concept
  736. index, the function index, the variables index, the keystroke index, the
  737. program index, and the data type index (*note Predefined Indices::.).
  738. Each index type has a two-letter name: `cp', `fn', `vr', `ky', `pg',
  739. and `tp'.  You may merge indices, or put them into separate sections
  740. (*note Combining Indices::.); or you may define your own indices (*note
  741. Defining New Indices: New Indices.).
  742.  
  743.   The `@printindex' command takes a two-letter index name, reads the
  744. corresponding sorted index file and formats it appropriately into an
  745. index.
  746.  
  747.   The `@printindex' command does not generate a chapter heading for the
  748. index.  Consequently, you should precede the `@printindex' command with
  749. a suitable section or chapter command (usually `@unnumbered') to supply
  750. the chapter heading and put the index into the table of contents.
  751. Precede the `@unnumbered' command with an `@node' line.
  752.  
  753.   For example:
  754.  
  755.      @node Variable Index, Concept Index, Function Index, Top
  756.      @comment    node-name,         next,       previous, up
  757.      @unnumbered Variable Index
  758.      
  759.      @printindex vr
  760.  
  761.      @node     Concept Index,     , Variable Index, Top
  762.      @comment      node-name, next,       previous, up
  763.      @unnumbered Concept Index
  764.      
  765.      @printindex cp
  766.  
  767.      @summarycontents
  768.      @contents
  769.      @bye
  770.  
  771. (Readers often prefer that the concept index come last in a book, since
  772. that makes it easiest to find.)
  773.  
  774. 
  775. File: texinfo.info,  Node: Contents,  Next: File End,  Prev: Printing Indices & Menus,  Up: Ending a File
  776.  
  777. Generating a Table of Contents
  778. ==============================
  779.  
  780.   The `@chapter', `@section', and other structuring commands supply the
  781. information to make up a table of contents, but they do not cause an
  782. actual table to appear in the manual.  To do this, you must use the
  783. `@contents' and `@summarycontents' commands:
  784.  
  785. `@contents'
  786.      Generate a table of contents in a printed manual, including all
  787.      chapters, sections, subsections, etc., as well as appendices and
  788.      unnumbered chapters.  (Headings generated by the `@heading' series
  789.      of commands do not appear in the table of contents.)  The
  790.      `@contents' command should be written on a line by itself.
  791.  
  792. `@shortcontents'
  793. `@summarycontents'
  794.      (`@summarycontents' is a synonym for `@shortcontents'; the two
  795.      commands are exactly the same.)
  796.  
  797.      Generate a short or summary table of contents that lists only the
  798.      chapters (and appendices and unnumbered chapters).  Omit sections,
  799.      subsections and subsubsections.  Only a long manual needs a short
  800.      table of contents in addition to the full table of contents.
  801.  
  802.      Write the `@shortcontents' command on a line by itself right
  803.      *before* the `@contents' command.
  804.  
  805.   The table of contents commands automatically generate a chapter-like
  806. heading at the top of the first table of contents page.  Write the table
  807. of contents commands at the very end of a Texinfo file, just before the
  808. `@bye' command, following any index sections--anything in the Texinfo
  809. file after the table of contents commands will be omitted from the
  810. table of contents.
  811.  
  812.   When you print a manual with a table of contents, the table of
  813. contents are printed last and numbered with roman numerals.  You need
  814. to place those pages in their proper place, after the title page,
  815. yourself.  (This is the only collating you need to do for a printed
  816. manual.  The table of contents is printed last because it is generated
  817. after the rest of the manual is typeset.)
  818.  
  819.   Here is an example of where to write table of contents commands:
  820.  
  821.      INDICES...
  822.      @shortcontents
  823.      @contents
  824.      @bye
  825.  
  826.   Since an Info file uses menus instead of tables of contents, the Info
  827. formatting commands ignore the `@contents' and `@shortcontents'
  828. commands.
  829.  
  830. 
  831. File: texinfo.info,  Node: File End,  Prev: Contents,  Up: Ending a File
  832.  
  833. `@bye' File Ending
  834. ==================
  835.  
  836.   An `@bye' command terminates TeX or Info formatting.  None of the
  837. formatting commands see any of the file following `@bye'.  The `@bye'
  838. command should be on a line by itself.
  839.  
  840.   If you wish, you may follow the `@bye' line with notes. These notes
  841. will not be formatted and will not appear in either Info or a printed
  842. manual; it is as if text after `@bye' were within `@ignore' ... `@end
  843. ignore'.  Also, you may follow the `@bye' line with a local variables
  844. list.  *Note Using Local Variables and the Compile Command:
  845. Compile-Command, for more information.
  846.  
  847. 
  848. File: texinfo.info,  Node: Structuring,  Next: Nodes,  Prev: Ending a File,  Up: Top
  849.  
  850. Chapter Structuring
  851. *******************
  852.  
  853.   The "chapter structuring" commands divide a document into a hierarchy
  854. of chapters, sections, subsections, and subsubsections.  These commands
  855. generate large headings; they also provide information for the table of
  856. contents of a printed manual (*note Generating a Table of Contents:
  857. Contents.).
  858.  
  859.   The chapter structuring commands do not create an Info node structure,
  860. so normally you should put an `@node' command immediately before each
  861. chapter structuring command (*note Nodes::.).  The only time you are
  862. likely to use the chapter structuring commands without using the node
  863. structuring commands is if you are writing a document that contains no
  864. cross references and will never be transformed into Info format.
  865.  
  866.   It is unlikely that you will ever write a Texinfo file that is
  867. intended only as an Info file and not as a printable document.  If you
  868. do, you might still use chapter structuring commands to create a
  869. heading at the top of each node--but you don't need to.
  870.  
  871. * Menu:
  872.  
  873. * Tree Structuring::            A manual is like an upside down tree ...
  874. * Structuring Command Types::   How to divide a manual into parts.
  875. * makeinfo top::                The `@top' command, part of the `Top' node.
  876. * chapter::
  877. * unnumbered & appendix::
  878. * majorheading & chapheading::
  879. * section::
  880. * unnumberedsec appendixsec heading::
  881. * subsection::
  882. * unnumberedsubsec appendixsubsec subheading::
  883. * subsubsection::               Commands for the lowest level sections.
  884. * Raise/lower sections::        How to change commands' hierarchical level.
  885.  
  886. 
  887. File: texinfo.info,  Node: Tree Structuring,  Next: Structuring Command Types,  Prev: Structuring,  Up: Structuring
  888.  
  889. Tree Structure of Sections
  890. ==========================
  891.  
  892.   A Texinfo file is usually structured like a book with chapters,
  893. sections, subsections, and the like.  This structure can be visualized
  894. as a tree (or rather as an upside-down tree) with the root at the top
  895. and the levels corresponding to chapters, sections, subsection, and
  896. subsubsections.
  897.  
  898.   Here is a diagram that shows a Texinfo file with three chapters, each
  899. of which has two sections.
  900.  
  901.                                Top
  902.                                 |
  903.               -------------------------------------
  904.              |                  |                  |
  905.           Chapter 1          Chapter 2          Chapter 3
  906.              |                  |                  |
  907.           --------           --------           --------
  908.          |        |         |        |         |        |
  909.       Section  Section   Section  Section   Section  Section
  910.         1.1      1.2       2.1      2.2       3.1      3.2
  911.  
  912.   In a Texinfo file that has this structure, the beginning of Chapter 2
  913. looks like this:
  914.  
  915.      @node    Chapter 2,  Chapter 3, Chapter 1, top
  916.      @chapter Chapter 2
  917.  
  918.   The chapter structuring commands are described in the sections that
  919. follow; the `@node' and `@menu' commands are described in following
  920. chapters. (*Note Nodes::, and see *Note Menus::.)
  921.  
  922. 
  923. File: texinfo.info,  Node: Structuring Command Types,  Next: makeinfo top,  Prev: Tree Structuring,  Up: Structuring
  924.  
  925. Types of Structuring Commands
  926. =============================
  927.  
  928.   The chapter structuring commands fall into four groups or series, each
  929. of which contains structuring commands corresponding to the
  930. hierarchical levels of chapters, sections, subsections, and
  931. subsubsections.
  932.  
  933.   The four groups are the `@chapter' series, the `@unnumbered' series,
  934. the `@appendix' series, and the `@heading' series.
  935.  
  936.   Each command produces titles that have a different appearance on the
  937. printed page or Info file; only some of the commands produce titles
  938. that are listed in the table of contents of a printed book or manual.
  939.  
  940.    * The `@chapter' and `@appendix' series of commands produce numbered
  941.      or lettered entries both in the body of a printed work and in its
  942.      table of contents.
  943.  
  944.    * The `@unnumbered' series of commands produce unnumbered entries
  945.      both in the body of a printed work and in its table of contents.
  946.      The `@top' command, which has a special use, is a member of this
  947.      series (*note `@top': makeinfo top.).
  948.  
  949.    * The `@heading' series of commands produce unnumbered headings that
  950.      do not appear in a table of contents.  The heading commands never
  951.      start a new page.
  952.  
  953.    * The `@majorheading' command produces results similar to using the
  954.      `@chapheading' command but generates a larger vertical whitespace
  955.      before the heading.
  956.  
  957.    * When an `@setchapternewpage' command says to do so, the
  958.      `@chapter', `@unnumbered', and `@appendix' commands start new
  959.      pages in the printed manual; the `@heading' commands do not.
  960.  
  961.   Here are the four groups of chapter structuring commands:
  962.  
  963.                                                             No new pages
  964.      Numbered       Unnumbered       Lettered and numbered  Unnumbered
  965.      In contents    In contents          In contents        Not in contents
  966.      
  967.                     @top                                    @majorheading
  968.      @chapter       @unnumbered          @appendix          @chapheading
  969.      @section       @unnumberedsec       @appendixsec       @heading
  970.      @subsection    @unnumberedsubsec    @appendixsubsec    @subheading
  971.      @subsubsection @unnumberedsubsubsec @appendixsubsubsec @subsubheading
  972.  
  973. 
  974. File: texinfo.info,  Node: makeinfo top,  Next: chapter,  Prev: Structuring Command Types,  Up: Structuring
  975.  
  976. `@top'
  977. ======
  978.  
  979.   The `@top' command is a special sectioning command that you use only
  980. after an `@node Top' line at the beginning of a Texinfo file.  The
  981. `@top' command tells the `makeinfo' formatter which node is the `Top'
  982. node.  It has the same typesetting effect as `@unnumbered' (*note
  983. `@unnumbered': (`@appendix')unnumbered & appendix.).  For detailed
  984. information, see *Note The `@top' Command: makeinfo top command.
  985.  
  986. 
  987. File: texinfo.info,  Node: chapter,  Next: unnumbered & appendix,  Prev: makeinfo top,  Up: Structuring
  988.  
  989. `@chapter'
  990. ==========
  991.  
  992.   `@chapter' identifies a chapter in the document.  Write the command
  993. at the beginning of a line and follow it on the same line by the title
  994. of the chapter.
  995.  
  996.   For example, this chapter in this manual is entitled "Chapter
  997. Structuring"; the `@chapter' line looks like this:
  998.  
  999.      @chapter Chapter Structuring
  1000.  
  1001.   In TeX, the `@chapter' command creates a chapter in the document,
  1002. specifying the chapter title.  The chapter is numbered automatically.
  1003.  
  1004.   In Info, the `@chapter' command causes the title to appear on a line
  1005. by itself, with a line of asterisks inserted underneath.  Thus, in
  1006. Info, the above example produces the following output:
  1007.  
  1008.      Chapter Structuring
  1009.      *******************
  1010.  
  1011.   Texinfo also provides a command `@centerchap', which is analogous to
  1012. `@unnumbered', but centers its argument in the printed output.  This
  1013. kind of stylistic choice is not usually offered by Texinfo.
  1014.  
  1015. 
  1016. File: texinfo.info,  Node: unnumbered & appendix,  Next: majorheading & chapheading,  Prev: chapter,  Up: Structuring
  1017.  
  1018. `@unnumbered', `@appendix'
  1019. ==========================
  1020.  
  1021.   Use the `@unnumbered' command to create a chapter that appears in a
  1022. printed manual without chapter numbers of any kind.  Use the
  1023. `@appendix' command to create an appendix in a printed manual that is
  1024. labelled by letter instead of by number.
  1025.  
  1026.   For Info file output, the `@unnumbered' and `@appendix' commands are
  1027. equivalent to `@chapter': the title is printed on a line by itself with
  1028. a line of asterisks underneath.  (*Note `@chapter': chapter.)
  1029.  
  1030.   To create an appendix or an unnumbered chapter, write an `@appendix'
  1031. or `@unnumbered' command at the beginning of a line and follow it on
  1032. the same line by the title, as you would if you were creating a chapter.
  1033.  
  1034. 
  1035. File: texinfo.info,  Node: majorheading & chapheading,  Next: section,  Prev: unnumbered & appendix,  Up: Structuring
  1036.  
  1037. `@majorheading', `@chapheading'
  1038. ===============================
  1039.  
  1040.   The `@majorheading' and `@chapheading' commands put chapter-like
  1041. headings in the body of a document.
  1042.  
  1043.   However, neither command causes TeX to produce a numbered heading or
  1044. an entry in the table of contents; and neither command causes TeX to
  1045. start a new page in a printed manual.
  1046.  
  1047.   In TeX, an `@majorheading' command generates a larger vertical
  1048. whitespace before the heading than an `@chapheading' command but is
  1049. otherwise the same.
  1050.  
  1051.   In Info, the `@majorheading' and `@chapheading' commands are
  1052. equivalent to `@chapter': the title is printed on a line by itself with
  1053. a line of asterisks underneath.  (*Note `@chapter': chapter.)
  1054.  
  1055. 
  1056. File: texinfo.info,  Node: section,  Next: unnumberedsec appendixsec heading,  Prev: majorheading & chapheading,  Up: Structuring
  1057.  
  1058. `@section'
  1059. ==========
  1060.  
  1061.   In a printed manual, an `@section' command identifies a numbered
  1062. section within a chapter.  The section title appears in the table of
  1063. contents.  In Info, an `@section' command provides a title for a
  1064. segment of text, underlined with `='.
  1065.  
  1066.   This section is headed with an `@section' command and looks like this
  1067. in the Texinfo file:
  1068.  
  1069.      @section @code{@@section}
  1070.  
  1071.   To create a section, write the `@section' command at the beginning of
  1072. a line and follow it on the same line by the section title.
  1073.  
  1074.   Thus,
  1075.  
  1076.      @section This is a section
  1077.  
  1078. produces
  1079.  
  1080.      This is a section
  1081.      =================
  1082.  
  1083. in Info.
  1084.  
  1085. 
  1086. File: texinfo.info,  Node: unnumberedsec appendixsec heading,  Next: subsection,  Prev: section,  Up: Structuring
  1087.  
  1088. `@unnumberedsec', `@appendixsec', `@heading'
  1089. ============================================
  1090.  
  1091.   The `@unnumberedsec', `@appendixsec', and `@heading' commands are,
  1092. respectively, the unnumbered, appendix-like, and heading-like
  1093. equivalents of the `@section' command.  (*Note `@section': section.)
  1094.  
  1095. `@unnumberedsec'
  1096.      The `@unnumberedsec' command may be used within an unnumbered
  1097.      chapter or within a regular chapter or appendix to provide an
  1098.      unnumbered section.
  1099.  
  1100. `@appendixsec'
  1101. `@appendixsection'
  1102.      `@appendixsection' is a longer spelling of the `@appendixsec'
  1103.      command; the two are synonymous.
  1104.  
  1105.      Conventionally, the `@appendixsec' or `@appendixsection' command
  1106.      is used only within appendices.
  1107.  
  1108. `@heading'
  1109.      You may use the `@heading' command anywhere you wish for a
  1110.      section-style heading that will not appear in the table of
  1111.      contents.
  1112.  
  1113. 
  1114. File: texinfo.info,  Node: subsection,  Next: unnumberedsubsec appendixsubsec subheading,  Prev: unnumberedsec appendixsec heading,  Up: Structuring
  1115.  
  1116. The `@subsection' Command
  1117. =========================
  1118.  
  1119.   Subsections are to sections as sections are to chapters.  (*Note
  1120. `@section': section.)  In Info, subsection titles are underlined with
  1121. `-'.  For example,
  1122.  
  1123.      @subsection This is a subsection
  1124.  
  1125. produces
  1126.  
  1127.      This is a subsection
  1128.      --------------------
  1129.  
  1130.   In a printed manual, subsections are listed in the table of contents
  1131. and are numbered three levels deep.
  1132.  
  1133. 
  1134. File: texinfo.info,  Node: unnumberedsubsec appendixsubsec subheading,  Next: subsubsection,  Prev: subsection,  Up: Structuring
  1135.  
  1136. The `@subsection'-like Commands
  1137. ===============================
  1138.  
  1139.   The `@unnumberedsubsec', `@appendixsubsec', and `@subheading'
  1140. commands are, respectively, the unnumbered, appendix-like, and
  1141. heading-like equivalents of the `@subsection' command.  (*Note
  1142. `@subsection': subsection.)
  1143.  
  1144.   In Info, the `@subsection'-like commands generate a title underlined
  1145. with hyphens.  In a printed manual, an `@subheading' command produces a
  1146. heading like that of a subsection except that it is not numbered and
  1147. does not appear in the table of contents.  Similarly, an
  1148. `@unnumberedsubsec' command produces an unnumbered heading like that of
  1149. a subsection and an `@appendixsubsec' command produces a
  1150. subsection-like heading labelled with a letter and numbers; both of
  1151. these commands produce headings that appear in the table of contents.
  1152.  
  1153. 
  1154. File: texinfo.info,  Node: subsubsection,  Next: Raise/lower sections,  Prev: unnumberedsubsec appendixsubsec subheading,  Up: Structuring
  1155.  
  1156. The `subsub' Commands
  1157. =====================
  1158.  
  1159.   The fourth and lowest level sectioning commands in Texinfo are the
  1160. `subsub' commands.  They are:
  1161.  
  1162. `@subsubsection'
  1163.      Subsubsections are to subsections as subsections are to sections.
  1164.      (*Note `@subsection': subsection.)  In a printed manual,
  1165.      subsubsection titles appear in the table of contents and are
  1166.      numbered four levels deep.
  1167.  
  1168. `@unnumberedsubsubsec'
  1169.      Unnumbered subsubsection titles appear in the table of contents of
  1170.      a printed manual, but lack numbers.  Otherwise, unnumbered
  1171.      subsubsections are the same as subsubsections.  In Info, unnumbered
  1172.      subsubsections look exactly like ordinary subsubsections.
  1173.  
  1174. `@appendixsubsubsec'
  1175.      Conventionally, appendix commands are used only for appendices and
  1176.      are lettered and numbered appropriately in a printed manual.  They
  1177.      also appear in the table of contents.  In Info, appendix
  1178.      subsubsections look exactly like ordinary subsubsections.
  1179.  
  1180. `@subsubheading'
  1181.      The `@subsubheading' command may be used anywhere that you need a
  1182.      small heading that will not appear in the table of contents.  In
  1183.      Info, subsubheadings look exactly like ordinary subsubsection
  1184.      headings.
  1185.  
  1186.   In Info,  `subsub' titles are underlined with periods.  For example,
  1187.  
  1188.      @subsubsection This is a subsubsection
  1189.  
  1190. produces
  1191.  
  1192.      This is a subsubsection
  1193.      .......................
  1194.  
  1195. 
  1196. File: texinfo.info,  Node: Raise/lower sections,  Prev: subsubsection,  Up: Structuring
  1197.  
  1198. `@raisesections' and `@lowersections'
  1199. =====================================
  1200.  
  1201.   The `@raisesections' and `@lowersections' commands raise and lower
  1202. the hierarchical level of chapters, sections, subsections and the like.
  1203. The `@raisesections' command changes sections to chapters, subsections
  1204. to sections, and so on.  The `@lowersections' command changes chapters
  1205. to sections, sections to subsections, and so on.
  1206.  
  1207.   An `@lowersections' command is useful if you wish to include text
  1208. that is written as an outer or standalone Texinfo file in another
  1209. Texinfo file as an inner, included file.  If you write the command at
  1210. the beginning of the file, all your `@chapter' commands are formatted
  1211. as if they were `@section' commands, all your `@section' command are
  1212. formatted as if they were `@subsection' commands, and so on.
  1213.  
  1214.   `@raisesections' raises a command one level in the chapter
  1215. structuring hierarchy:
  1216.  
  1217.        Change           To
  1218.      
  1219.      @subsection     @section,
  1220.      @section        @chapter,
  1221.      @heading        @chapheading,
  1222.                etc.
  1223.  
  1224.   `@lowersections' lowers a command one level in the chapter
  1225. structuring hierarchy:
  1226.  
  1227.        Change           To
  1228.      
  1229.      @chapter        @section,
  1230.      @subsection     @subsubsection,
  1231.      @heading        @subheading,
  1232.                etc.
  1233.  
  1234.   An `@raisesections' or `@lowersections' command changes only those
  1235. structuring commands that follow the command in the Texinfo file.
  1236. Write an `@raisesections' or `@lowersections' command on a line of its
  1237. own.
  1238.  
  1239.   An `@lowersections' command cancels an `@raisesections' command, and
  1240. vice versa.  Typically, the commands are used like this:
  1241.  
  1242.      @lowersections
  1243.      @include somefile.texi
  1244.      @raisesections
  1245.  
  1246.   Without the `@raisesections', all the subsequent sections in your
  1247. document will be lowered.
  1248.  
  1249.   Repeated use of the commands continue to raise or lower the
  1250. hierarchical level a step at a time.
  1251.  
  1252.   An attempt to raise above `chapters' reproduces chapter commands; an
  1253. attempt to lower below `subsubsections' reproduces subsubsection
  1254. commands.
  1255.  
  1256. 
  1257. File: texinfo.info,  Node: Nodes,  Next: Menus,  Prev: Structuring,  Up: Top
  1258.  
  1259. Nodes
  1260. *****
  1261.  
  1262.   "Nodes" are the primary segments of a Texinfo file.  They do not
  1263. themselves impose a hierarchic or any other kind of structure on a file.
  1264. Nodes contain "node pointers" that name other nodes, and can contain
  1265. "menus" which are lists of nodes.  In Info, the movement commands can
  1266. carry you to a pointed-to node or to a node listed in a menu.  Node
  1267. pointers and menus provide structure for Info files just as chapters,
  1268. sections, subsections, and the like, provide structure for printed
  1269. books.
  1270.  
  1271. * Menu:
  1272.  
  1273. * Two Paths::                   Different commands to structure
  1274.                                   Info output and printed output.
  1275. * Node Menu Illustration::      A diagram, and sample nodes and menus.
  1276. * node::                        How to write a node, in detail.
  1277. * makeinfo Pointer Creation::   How to create node pointers with `makeinfo'.
  1278.  
  1279. 
  1280. File: texinfo.info,  Node: Two Paths,  Next: Node Menu Illustration,  Prev: Nodes,  Up: Nodes
  1281.  
  1282. Two Paths
  1283. =========
  1284.  
  1285.   The node and menu commands and the chapter structuring commands are
  1286. independent of each other:
  1287.  
  1288.    * In Info, node and menu commands provide structure.  The chapter
  1289.      structuring commands generate headings with different kinds of
  1290.      underlining--asterisks for chapters, hyphens for sections, and so
  1291.      on; they do nothing else.
  1292.  
  1293.    * In TeX, the chapter structuring commands generate chapter and
  1294.      section numbers and tables of contents.  The node and menu
  1295.      commands provide information for cross references; they do nothing
  1296.      else.
  1297.  
  1298.   You can use node pointers and menus to structure an Info file any way
  1299. you want; and you can write a Texinfo file so that its Info output has a
  1300. different structure than its printed output.  However, most Texinfo
  1301. files are written such that the structure for the Info output
  1302. corresponds to the structure for the printed output.  It is not
  1303. convenient to do otherwise.
  1304.  
  1305.   Generally, printed output is structured in a tree-like hierarchy in
  1306. which the chapters are the major limbs from which the sections branch
  1307. out.  Similarly, node pointers and menus are organized to create a
  1308. matching structure in the Info output.
  1309.  
  1310.